//
//  LPTDrawBalanceTableViewCell.m
//  LPTClient
//
//  Created by mac on 2018/12/6.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import "LPTDrawBalanceTableViewCell.h"

@interface LPTDrawBalanceTableViewCell ()

@property (weak, nonatomic) IBOutlet UITextField *balanceTextField;
@property (weak, nonatomic) IBOutlet UILabel *lable1;
@property (weak, nonatomic) IBOutlet UILabel *label;
@property (weak, nonatomic) IBOutlet UILabel *lable3;


@end

@implementation LPTDrawBalanceTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(NSString *)getAmmount
{
    return self.balanceTextField.text;
}

-(void)refreshWithDic:(NSDictionary *)dic
{
    UserInfoModel *model = [[LTPCacheManager shareInstance] getUserInfoModel];
    NSString *yueString = [NSString stringWithFormat:@"可提现余额:%@",model.doctor.account.balance];
    self.lable1.text = yueString;
    
    self.label.text = [NSString stringWithFormat:@"提现费率:%@",dic[@"hadoctor.cash_rate"]];
    self.lable3.text = [NSString stringWithFormat:@"账号必须最少%@才能提现",dic[@"hadoctor.min_cash_amount"]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
